package sgc.struc;

public class Pord_Position {

	private int por_no;
	private int por_pos;
	private String mat_name;
	private int mat_code;
	private double mat_cant;
	private double mat_pend;
	private String mat_unit;
	private String pos_msg;
	
	public int getPor_no() {
		return por_no;
	}
	public void setPor_no(int por_no) {
		this.por_no = por_no;
	}
	public int getPor_pos() {
		return por_pos;
	}
	public void setPor_pos(int por_pos) {
		this.por_pos = por_pos;
	}
	public String getMat_name() {
		return mat_name;
	}
	public void setMat_name(String mat_name) {
		this.mat_name = mat_name;
	}
	public int getMat_code() {
		return mat_code;
	}
	public void setMat_code(int mat_code) {
		this.mat_code = mat_code;
	}
	public double getMat_cant() {
		return mat_cant;
	}
	public void setMat_cant(double mat_cant) {
		this.mat_cant = mat_cant;
	}
	public double getMat_pend() {
		return mat_pend;
	}
	public void setMat_pend(double mat_pend) {
		this.mat_pend = mat_pend;
	}
	public String getMat_unit() {
		return mat_unit;
	}
	public void setMat_unit(String mat_unit) {
		this.mat_unit = mat_unit;
	}
	public String getPos_msg() {
		return pos_msg;
	}
	public void setPos_msg(String pos_msg) {
		this.pos_msg = pos_msg;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		long temp;
		temp = Double.doubleToLongBits(mat_cant);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + mat_code;
		result = prime * result
				+ ((mat_name == null) ? 0 : mat_name.hashCode());
		temp = Double.doubleToLongBits(mat_pend);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result
				+ ((mat_unit == null) ? 0 : mat_unit.hashCode());
		result = prime * result + por_no;
		result = prime * result + por_pos;
		result = prime * result + ((pos_msg == null) ? 0 : pos_msg.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Pord_Position other = (Pord_Position) obj;
		if (Double.doubleToLongBits(mat_cant) != Double
				.doubleToLongBits(other.mat_cant))
			return false;
		if (mat_code != other.mat_code)
			return false;
		if (mat_name == null) {
			if (other.mat_name != null)
				return false;
		} else if (!mat_name.equals(other.mat_name))
			return false;
		if (Double.doubleToLongBits(mat_pend) != Double
				.doubleToLongBits(other.mat_pend))
			return false;
		if (mat_unit == null) {
			if (other.mat_unit != null)
				return false;
		} else if (!mat_unit.equals(other.mat_unit))
			return false;
		if (por_no != other.por_no)
			return false;
		if (por_pos != other.por_pos)
			return false;
		if (pos_msg == null) {
			if (other.pos_msg != null)
				return false;
		} else if (!pos_msg.equals(other.pos_msg))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Pord_Position [por_no=" + por_no + ", por_pos=" + por_pos
				+ ", mat_name=" + mat_name + ", mat_code=" + mat_code
				+ ", mat_cant=" + mat_cant + ", mat_pend=" + mat_pend
				+ ", mat_unit=" + mat_unit + ", pos_msg=" + pos_msg + "]";
	}
	
}
